<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>标签模式转化</title>
</head>
<style>
    li {
        list-style: none;
        display: inline;
        background-color: pink;
    }
</style>
<body>
<div class="transfer">
    <ul>
        <li>display:block 行内转块</li>
        <li>display:inline 块转行内</li>
        <li>display:inline-block 块或行内转行内块</li>
    </ul>
    行内元素有一个间隙
</div>
</body>
</html>